package practicedemo10;

import java.util.Scanner;

public class practicedemo10 {
    public static void main(String[] args){
        //假设某影院售卖了100张票，票序号为1-100.
        //奇数票号坐左侧，偶数票号坐右侧
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的票号：");
        int x = sc.nextInt();
        if (x<1|x>100) {
            System.out.println("输入的票号有错误");
        } else {
            if (x%2==0){
                System.out.println("坐右边");
            } else {
                System.out.println("坐左边");
            }
        }
    }
}
